<html>
<body>
Reports JUnit <code>assertEquals()</code> calls that can be replaced with an equivalent <code>assertSame()</code> call.
This is possible when the arguments are instances of a <code>final</code> class that does not override the <code>Object.equals()</code>
method and makes it explicit that the object identity is compared.
<p>Suggests replacing <code>assertEquals()</code> with <code>assertSame()</code>.</p>
<p><b>Example:</b></p>
<pre><code lang="java">
  @Test
  public void testObjectType() {
    Object o = getObject();
    Assert.assertEquals(String.class, o.getClass());
  }
</code></pre>
<p>After the quick fix is applied:</p>
<pre><code>
  @Test
  public void testSort() {
    Object o = getObject();
    Assert.assertSame(String.class, o.getClass());
  }
</code></pre>
<!-- tooltip end -->
</body>
</html>